home *** CD-ROM | disk | FTP | other *** search
- 73
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- EncryptText
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows and Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baEncryptText encrypts a text string.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baEncryptText( String , Key )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String, String.
- --- RECORDSEPARATOR ---
- String is the text to encrypt.
- --- RECORDSEPARATOR ---
- Key is the string to use as the encryption key.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String.
- --- RECORDSEPARATOR ---
- Returns the encrypted string.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set text = baEncryptText( "MyPassword" , "This is my key" )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- test := baEncryptText( "MyPassword" , "This is my key" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- This function uses an xor routine to encrypt the text. To decrypt the text, use the
- --- RECORDSEPARATOR ---
- baDecryptText function using the same key. This will return the original text.
- --- RECORDSEPARATOR ---
- As well as encrypting the text, this function also puts the text through a uuencode
- --- RECORDSEPARATOR ---
- type function to ensure that the encrypted string contains only printable characters.
- --- RECORDSEPARATOR ---
- This means that the encrypted string will not be the same length as the original
- --- RECORDSEPARATOR ---
- string.
- --- RECORDSEPARATOR ---
- The maximum size of the string that can be encrypted is 24000 characters.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- See also:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baDecryptText